package com.onion.mvc.annotation;

import com.onion.mvc.enums.ParamPolicy;
import java.lang.annotation.*;

/**
 * onion参数注入
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface OnionParam {

    ParamPolicy policy() default ParamPolicy.BODY_PRIOR;

    String name() default "";

}